/**
 * FileName: AopApi
 * Author:   powersi
 * Date:     2021/3/18 9:05
 * Description:
 */
package com.zm.demo.spring.aop.api;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Description: 
 * Author:      powersi
 * Date:        2021/3/18 9:05
 */
public class AopApi {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("aop-api.xml");
        context.refresh();
        UserService userService = context.getBean("userService", UserService.class);
        userService.addUser();
        context.close();
    }
}
